main.dart
废话不多说 直接上代码 😃
1 | import 'package:flutter/material.dart'; |
main_provider.dart
废话不多说 直接上代码 😃
1 | import 'package:flutter/material.dart'; |
Flutter 常用插件
| 插件 | 作用 |
| ———————————————- | ——— |
| fluwx | 微信 SDK |
| tobias | 支付宝 SDK |
| alipay_me | 支付宝 SDK |
| image_picker | 拍照和选图片 |
| flutter_jpush | 极光推送 |
| dio | HTTP 网络请求库 |
| FlutterToast | Toast |
| audioplayers | 音频播放 |
| flutter_easyrefresh | 下拉刷新 |
| flutter_contacts | 管理联系人 |
| font_awesome_flutter | Awesome 图标库 |
| flutter_svg | svg |
| flutter_spinkit | loading 动画 |
| flutter_shimmer| Skeleton 页面加载占位符 |
| encrypt | 加密解密 |
| flutter_udid | udid |
| flutter_swiper | 轮播图 |
| flutter_carousel_slider | 轮播图 |
| RealRichText | 富文本 |
| auto_size_text | 自动调节大小的文本 |
| Animated-Text-Kit | 带动画的文本 |
| Flutter TypeAhead | 带提示的输入框 |
| flutter_screenutil | 自适应多分辨率 |
| city_pickers | 中国城市三级联动选择器 |
| flutter_datetime_picker | 时间选择器 |
| photo_view | 图片预览 |
| flutter_full_pdf_viewer | 多张图片选择器 |
| multi_image_picker | int |
| qr.flutter| 二维码生成器 |
| fast_qr_reader_view | 二维码识别器 |
| flushbar | Snackbar 效果 |
| pin_code_text_field | pin 输入框 |
| RangeSlider | 范围选择器 |
| flutter_slidable | 可以左右滑动的 listitem |
| flutter_list_drag_and_drop | 可以拖拽的 list |
| tinder_cards | 可以拖拽的 card |
| amap_base_flutter | 高德地图 |
| flutter_daydart | 时间处理库 |
| cached_network_image | 缓存图片 |
| flutter_advanced_networkimage | 高级缓存图片 |
| image_jpeg | 转 jpeg 缩放压缩 |
| photo | 选择图像,支持多选 |
| flutter-provide | 数据状态管理 |
| common_utils | 常用工具 |
| flukit | flutter 常用 ui 封装 |
| flutter_sticky_header | 顶头的列表 |
| sticky_headers | 顶头的列表 |
| flutter_staggered_grid_view | 瀑布流布局|
| flutter_parallax | 视差布局 |
| flutter_calendar_carousel | 日历 |
| flutter_appavailability | 检测是否安装了其他 app |